<div style="display:none;">
    <form action="https://ssl.ditonlinebetalingssystem.dk/popup/default.asp" method="post" name="ePay" target="ePay_window" id="ePay">
        <input type="hidden" name="cms" value="opencart"/>
        <input type="hidden" name="merchantnumber" value="<?php echo $merchantnumber ?>"/>
        <input type="hidden" name="orderid" value="<?php echo $orderid ?>"/>
        <input type="hidden" name="amount" value="<?php echo $amount*100 ?>"/>
        <input type="hidden" name="currency" value="<?php echo $currency ?>"/>
        <input type="hidden" name="accepturl" value="<?php echo $accepturl ?>"/>
        <input type="hidden" name="callbackurl" value="<?php echo $callbackurl ?>"/>
        <input type="hidden" name="declineurl" value="<?php echo $declineurl ?>"/>
        <input type="hidden" name="instantcallback" value="1"/>
        <input type="hidden" name="HTTP_COOKIE" value="<?php echo getenv(" HTTP_COOKIE") ?>">
        <input type="hidden" name="language" value="<?php echo $language ?>">
        <input type="hidden" name="description" value="<?php echo urlencode(utf8_decode($comment)); ?>">

        <?php
        if($md5mode == 2){
            echo '<input type="hidden" name="md5key" value="'.$md5key.'">';
        }

        if($customerfee == 1 and $window == 0){
            echo '<input type="hidden" name="transfee" value="0">';
        }elseif($customerfee == 1){
            echo '<input type="hidden" name="addfee" value="1">';
        }

        if(strlen($group) > 0){
            echo '<input type="hidden" name="group" value="'.$group.'">';
        }

        if(strlen($authsms) > 0){
            echo '<input type="hidden" name="authsms" value="'.$authsms.'">';
        }

        if(strlen($authemail) > 0){
            echo '<input type="hidden" name="authemail" value="'.$authemail.'">';
        }

        if($splitpayment == 1){
            echo '<input type="hidden" name="splitpayment" value="1">';
        }

        if($instantcapture == 1){
            echo '<input type="hidden" name="instantcapture" value="1">';
        }
        ?>

        <input type="hidden" name="windowstate" value="<?php echo $window; ?>"/>
        <?php //echo $stdwindow; ?>
    </form>
</div>

<script type="text/javascript" src="http://www.epay.dk/js/standardwindow.js"></script>